from Question import Question

question_prompts = [
    "what color are apples?         \n(a) Red/Green     \n(b) Purple   \n(c) Orange \n\n ",
    "what color are Bananas?        \n(a) Teal          \n(b) Magenta  \n(c) Yellow \n\n ",
    "what color are Strawbrries?    \n(a) Yellow        \n(b) Red      \n(c) Blue   \n\n "
]

questions = [
    Question(question_prompts[0], "a"),
    Question(question_prompts[1], "a"),
    Question(question_prompts[2], "a")
]


def run_test(p_questions):
    score = 0
    for question in p_questions:
        answer = input(question.prompt)
        if answer == question.answer:
            score += 1
    print("you got " + str(score) + "/" + str(len(p_questions)) + " correct")


run_test(questions)

